﻿using PrintLabel.Tools;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using 纺织贸易管理系统;

namespace PrintLabel.View
{
    
    public partial class QueryParamsView : AntdUI.Window
    {
        public JuanHaoTable Roll { get; set; } 
        public QueryParamsView()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtkuanhao.Text)||!string.IsNullOrEmpty(txtordernum.Text )||!string.IsNullOrEmpty(txtyanse.Text )||!string.IsNullOrEmpty(txtganghao.Text )||!string.IsNullOrEmpty(txthetonghao.Text ))
            {
                Roll = new JuanHaoTable();
                Roll.kuanhao = txtkuanhao.Text;
                Roll.OrderNum = txtordernum.Text;
                Roll.yanse = txtyanse.Text;
                Roll.GangHao = txtganghao.Text;
                Roll.Hetonghao = txthetonghao.Text;
            }
            this.Close();
        }

        private void txtordernum_Click(object sender, EventArgs e)
        {
            KeyboardHelper.ShowKeyboard("LettersAndNumberNoFunctionKeys", "输入");
        }

        private void txthetonghao_Click(object sender, EventArgs e)
        {
            KeyboardHelper.ShowKeyboard("LettersAndNumberNoFunctionKeys", "输入");
        }

        private void txtganghao_Click(object sender, EventArgs e)
        {
            KeyboardHelper.ShowKeyboard("Number", "输入");
        }

        private void txtkuanhao_Click(object sender, EventArgs e)
        {
            KeyboardHelper.ShowKeyboard("LettersAndNumberNoFunctionKeys", "输入");
        }

        private void txtyanse_Click(object sender, EventArgs e)
        {
            KeyboardHelper.ShowKeyboard("LettersAndNumberNoFunctionKeys", "输入");
        }
    }
}
